package com.lin.advice;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class Advice2 implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        System.out.println("around before advice...");
        Object invoke = invocation.getMethod().invoke(invocation.getThis(), invocation.getArguments());
        System.out.println("around after advice...");
        return invoke;
    }
}
